//
//  HTAlertCell.m
//  TruckUser
//
//  Created by Ting Han on 2017/11/2.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTAlertCell.h"

@interface HTAlertCell ()
@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;

@end

@implementation HTAlertCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentView.userInteractionEnabled = YES;
    self.contentView.layer.masksToBounds = YES;
    self.contentView.layer.cornerRadius = kWidth(3);
    self.contentView.layer.borderWidth = 0.3;
    self.contentView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    self.bgImageView.image = nil;
}

- (void)setSelected:(BOOL)selected{
    if (selected) {
        self.contentView.layer.borderWidth = 1;
        self.contentView.layer.borderColor = kBlueColor.CGColor;
        self.bgImageView.image = [UIImage imageNamed:@"car_sel"];
    }else{
        self.contentView.layer.borderWidth = 0.3;
        self.contentView.layer.borderColor = [UIColor lightGrayColor].CGColor;
        self.bgImageView.image = nil;
    }
}


@end
